SET(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION .)
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_NAME "ysserver")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "ysserver")
SET(CPACK_PACKAGE_VENDOR "www.qxin-cd.com")
SET(CPACK_PACKAGE_VERSION_MAJOR ${BUILD_MAJOR_VERSION})
SET(CPACK_PACKAGE_VERSION_MINOR ${BUILD_MINOR_VERSION})
SET(CPACK_PACKAGE_VERSION_PATCH ${BUILD_PATCH_VERSION})
IF(UNIX)
	SET(CPACK_GENERATOR "TGZ")
ELSE()
	SET(CPACK_GENERATOR "ZIP")
ENDIF()
SET(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/server")
STRING(TIMESTAMP CURRENT_TIME "%Y%m%d%H%M")
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-v${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${CURRENT_TIME}-USB(${WITH_USBDOG})-TA(${WITH_CRYPT_MACHINE})") 
INCLUDE(CPack)
